package day12;

import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
public class Cleaner {
    private String name;
    public Cleaner(String name){
        this.name=name;
    }
    public void selfIntro(){
        System.out.println("我是一个清洁工，我叫"+name);
    }
    public void doClean(String roomNo){
        Date d=new Date();
         class Xichengqi{
            String brand="美的";
            int watt=50;
            public void work(){
                System.out.println("工人"+Cleaner.this.name+"正在清洁房间"+roomNo+"\n打扫时间是"+d);
                System.out.println("使用的工具是"+brand+"的吸尘器，功率是"+watt+"瓦特");
            }
        }
        Xichengqi x=new Xichengqi();
         x.work();
    }
}
